import ajax from "@/utils/request";
import '@/mock/managercarsMock'

// 获取司机数据接口
export function getCarsInfoFn() {
	return ajax({
		method: 'post',
		url: '/managercars/getcarsInfo'

	})
}
// 添加线路接口
export function addRouteFn(data) {
	return ajax({
		method: 'post',
		url: '/managercars/addRoute',
		data,

	})
}


// 修改线路接口

export function updateRouteFn(data) {
	return ajax({
		method: 'post',
		url: '/managercars/updateRoute',
		data,

	})
}

// 删除线路接口

export function deleteRouteFn(data) {
	return ajax({
		method: 'post',
		url: '/managercars/deleteRoute',
		data,

	})
}